package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/12/6.
 */

public class GetGoodsInfoByGoodsIdRequest {
    long goodsId;

    private GetGoodsInfoByGoodsIdRequest(Builder builder) {
        setGoodsId(builder.goodsId);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(long goodsId) {
        this.goodsId = goodsId;
    }

    public static final class Builder {
        private long goodsId;

        private Builder() {
        }

        public Builder goodsId(long goodsId) {
            this.goodsId = goodsId;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().getGoodsInfoByGoodsId(new GetGoodsInfoByGoodsIdRequest(this));
        }
    }
}
